//
//  ViewController.m
//  CAReoplitorLayer
//
//  Created by 张云飞 on 2017/1/3.
//  Copyright © 2017年 张云飞. All rights reserved.
//

#import "ViewController.h"
#import "MyView.h"
@interface ViewController ()

@end

@implementation ViewController
{
    MyView *myView;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    myView = [[MyView alloc] initWithFrame:CGRectMake(self.view.center.x - 50, self.view.center.y - 50, 100, 100)];
    myView.backgroundColor = [UIColor orangeColor];
    [self.view addSubview:myView];

}
- (IBAction)stop:(id)sender {
    [myView stop];
}

- (IBAction)star:(id)sender {
    [myView star];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
